class Test_c1:
    name = '管理员首页 - UI '

    def teststeps(self):
        from selenium import webdriver
        from selenium.webdriver.common.by import By
        driver = webdriver.Chrome()
        driver.implicitly_wait(5)
        driver.get('http://127.0.0.1/mgr/sign.html')
        driver.find_element(By.CSS_SELECTOR,'#username').send_keys('byhy')
        driver.find_element(By.CSS_SELECTOR,'#password').send_keys('88888888')
        driver.find_element(By.CSS_SELECTOR,'body > div > div.login-box-body.text-center > div:nth-child(2) > div.row > div > button').click()

        # 先找到上层节点  缩小范围
        sidebarMenu = driver.find_element(By.CSS_SELECTOR,'#root > header > a > span.logo-lg')

        # 在找到内部元素
        elements = sidebarMenu.find_elements(By)